

#include "stdafx.h"
#include "pf_layer.h"

/**
 * Constructor.
 */
PF_Layer::PF_Layer(const QString& name) {
    setName(name);

    data.pen.setLineType(LX_Define::SolidLine);
    data.pen.setWidth(LX_Define::Width00);
    data.pen.setColor(Qt::black);
	data.frozen = false;
	data.locked = false;
}


/**
 * Dumps the layers data to stdout.
 */
std::ostream& operator << (std::ostream& os, const PF_Layer& l) {
    os << " name: " << l.getName().toLatin1().data()
    << " pen: " << l.getPen()
	<< " frozen: " << (int)l.isFrozen()
	<< " address: " << &l
    << std::endl;
    return os;
}

